@model IEnumerable<LynxWebLog.CategoryData>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<div class="table-responsive">
<table class="table table-condensed table-striped">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.categoryid)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.username)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.description)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.htmlUrl)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.rssUrl)
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.categoryid)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.description)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.htmlUrl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.rssUrl)
        </td>*@
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.categoryid }) |
            @Html.ActionLink("Details", "Details", new { id = item.categoryid }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.categoryid })
        </td>
    </tr>
}

</table></div>
